package com.wanxi.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author:Iny
 * @Data：2022/1/10 14:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("注册的账号")
@Builder
public class RegisterDto {

    @ApiModelProperty(value = "账号",required = true)
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "账号角色编号",example = "0：管理员，1：商家，2：店家，3：用户",required = true)
    private int role;
    @ApiModelProperty(value = "验证码",required = true)
    private String code;
}
